@import '../css/variables.css';

#index{

    .mainTitle, .mainTitle_sub{
        text-align: center;
    }
    .mainTitle{
        font-size: 48px;
        color: #000;
        padding-top: 66px;
    }
    .mainTitle_sub{
        font-size: 24px;
        color: #9B9B9B;
        margin-bottom: 70px;
    }
}

#banner{
    position: relative;
    height: 600px;
    overflow: hidden;
}

.positions{
    text-align: center;
    img{
        width: 116px;
        height: 110px;
        margin-bottom: 22px;
    }
}

#mind{
    .intro{
        margin: 80px auto;
        text-align: center;
        background: url('../../images/mind_bg.png') no-repeat;
        overflow: hidden;
    }
    .intro_health{
        max-width: 1060px;
        height: 180px;
        line-height: 180px;
        margin: 10px;
        font-size:48px;
        color: #fff;
    }
}

#values{
    color: #178067;
    text-align: center;
    background: url('../../images/j_bg.png') no-repeat 50% 0;
    .mainTitle, .mainTitle_sub{
        color: #fff;
    }
    .values{
        padding-bottom: 82px;
        font-size: 32px;
    }
    .col-li{
        background: #fff;
        max-width: 272px;
        height: 372px;
        margin: 0 auto;
        padding: 10px;
    }
    .col-desc{
        max-width: 270px;
        height: 370px;
        border: 1px solid #178067;
    }
    .col-no{
        width: 64px;
        height: 64px;
        line-height: 64px;
        border-radius: 50%;
        background: #178067;
        margin: 50px auto 80px;
        color: #fff;
    }
    .col-intro{
        width: 170px;
        margin: 0 auto;
        padding: 36px 0 14px;
        border-top: 1px solid #178067;
        height: 44px;
        line-height: 44px;
    }
    .intro_desc{
        font-size: 16px;
    }
}

.will-bg{
    background: url('../../images/will_bg.png') no-repeat 50% 120px;
}

#will{
    text-align: center;
    .col-li{
        max-width: 392px;
        height: 482px;
        padding: 10px;
        position: relative;
        background: #FDD001;
        overflow: hidden;
        margin: 0 auto;
    }
    img{position: absolute;
        top:0; left: 0;
        height: 310px;
    }
    .col-desc{
        position: relative;
        z-index: 2;
        border: 1px solid #fff;
        max-width: 390px;
        height: 120px;
        padding-top: 360px;
        font-size: 36px;
        color: #5d4343;
    }
    .will-pos{
        position: absolute;
        left: 0;
        right:0;
        bottom: -32px;
        color: #D9B300;
        font-size: 88px;
    }
}

.news-body{
    font-family: 'MicrosoftYaHeiUI-Bold';
    .news-macro{
        width: 40%;
    }
    .news-micro{
        width: 57%;
    }
}

.news-macro{
    .news-img{
        height: 344px;
        position: relative;
        overflow: hidden;
    }
    img{width: 100%;}
    .news-date{
        position: absolute;
        top: 0; left: 0;
        width: 60px;
        height: 60px;
        color: #fff;
        background: #178067;
        padding: 10px;
        text-align:center;
    }
    .date{
        font-weight: bold;
        font-size: 32px;
        height: 40px;
        line-height: 40px;
        border-bottom: 1px solid #146C57;
        margin-bottom: 5px;
    }
    .news-title, .news-desc{
        @extend %textoverflow;
    }
    .news-title{
        margin: 24px 0;
        font-weight: bold;
        font-size: 24px;
        color: #000;
        height: 30px;
        line-height: 30px;
        white-space: nowrap;
    }
    .news-desc{
        max-height: 48px;
        line-height: 24px;
        font-size: 16px;
        color: #9B9B9B;
        margin-bottom: 26px;
        @extend %YaHeiUI;
    }
    .news-link{
        display: block;
        height: 30px;
        line-height: 30px;
        width: 110px;
        text-align: center;
        border: 1px solid #6A6A6A;
        color: #9B9B9B;
    }
    .news-list{
        position: relative;
        height: 520px;

        li{position: absolute;
            width: 100%;
            height: 100%;
            top:0; left:0;
        }
    }
}

.news-micro{
    color: #9B9B9B;
    a{display: block;}
    li{height: 160px;
        margin-top: 25px;
        position: relative;
        &:first-child{margin-top:0;}
        &:hover, &.active{
            cursor: pointer;
            .news-date{
                background:#178067;
                color: #1EA484;
            }
            .date{color:#fff;
                border-bottom-color: #146C57;
            }
            .news-title{color: #178067;}
            .news-desc{color: #4A4A4A;}
        }
    }
    .news-date{
        position: absolute;
        top: 0; left: 0;
        width: 50px;
        height: 70px;
        text-align: center;
        background: #F0F0F0;
        padding: 45px 55px;
        white-space: nowrap;
        transition: background .2s;
    }
    .date{
        border-bottom: 1px solid #A3A3A3;
        height: 40px;
        line-height: 40px;
        margin-bottom: 7px;
        font-size: 32px;
        color: #4A4A4A;
        @extend %YaHeiUI-bold;
    }
    .news-info{
        position: absolute;
        top: 30px; left:190px;
        right:20px;bottom:30px;
    }
    .news-title{
        height: 22px;
        line-height: 22px;
        @extend %textoverflow;
        white-space: nowrap;
        color: #000;
        font-size: 24px;
        margin-bottom: 22px;
        @extend %YaHeiUI-bold;
    }
    .news-desc{
        line-height: 24px;
        max-height: 48px;
        @extend %textoverflow;
    }
}

.more-news{
    display: block;
    width: 130px;
    height: 40px;
    line-height: 40px;
    border: 1px solid #9B9B9B;
    text-align: center;
    margin: 80px auto 20px;
    @extend %YaHeiUI;
    color: #4A4A4A;
}

@media screen and (max-width: 420px) {
    #banner{height: 200px;}
    #index{
        .mainTitle{
            font-size: 24px;
            padding-top: 24px;
        }
        .mainTitle_sub{
            font-size: 12px;
            margin-bottom: 35px;
        }
    }
    .positions{
        .col-xs-3{
            width: 50%;
            margin-bottom: 30px;
        }
        img{width:100px;
            height: 95px;
            margin-bottom: 6px;
        }
    }

    #mind{
        .intro{
            margin: 36px auto;
            width: 90%;
            background:url('../../images/mind_h5_bg.png') no-repeat 50% 50%;
            background-size: contain;
        }
        .intro_health{
            height: 90px;
            line-height: 90px;
            font-size: 20px;
        }
    }

    #values{
        background-size: cover;
        .values{
            padding-bottom: 20px;
        }
        .col-xs-4{
            font-size: 20px;
            float: none;
            width: 90%;
            margin: 0 auto 20px;
        }
        .col-li, .col-desc{
            max-width: none;
            height: auto;
        }
        .col-no{
            width: 36px;
            height: 36px;
            line-height: 36px;
            margin: 30px auto 20px;
        }
        .col-intro{
            width: 84%;
        }
        .intro_desc{
            font-size: 13px;
            line-height: 18px;
            margin-bottom: 30px;
        }
    }

    .will-bg{background-size: auto 40%;}
    #will{
        .wills{
            overflow: auto;
            padding-left: 20px;
            white-space: nowrap;
        }

        .col-xs-4{
            float: none;
            margin-right:20px;
            width: 315px;
            @extend %inlineblock;
        }

        .col-li{
            height: 382px;
        }
        img{height: 282px;}
        .col-desc{
            padding-top: 320px;
            font-size: 26px;
        }
        .will-pos{
            bottom: -14px;
            font-size: 44px;
        }
    }

    .news-body{
        .news-macro, .news-micro{
            float: none;
            width: 90%;
            margin: 0 auto 25px;
        }
        .news-img{
            height: 220px;
        }
        img{width: auto;
            height: 100%;
        }
    }
    .news-macro{
        .news-list{
            height: 350px;
        }
        .news-title{
            height: 24px;
            line-height: 24px;
            font-size: 18px;
            margin: 15px 0;
        }
        .news-desc{
            font-size: 13px;
            line-height: 24px;
            max-height: 72px;
        }
        .news-link{
            display: none;
        }
    }
    .news-micro{
        li{height: 120px;
            margin-top: 20px;
        }
        .news-date{
            width: 60px;
            padding:25px 30px;
        }
        .news-info{
            top: 22px;
            right: 0;
            left: 130px;
        }
        .news-title{
            font-size: 14px;
            height: 18px;
            line-height: 18px;
            margin-bottom: 12px;
        }
        .news-desc{
            font-size: 13px;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
        }
    }
    .more-news{
        margin: 30px auto 50px;
        width: 110px;
        height: 32px;
        line-height: 32px;
        font-size: 14px;
    }
}
